Skip to content

Phase C: automatic carry - #31

Merged
rn404 merged 2 commits into
mainfrom
memo-log-redesign-phase-c
Aug 17, 2026
Merged

Phase C: automatic carry#31
rn404 merged 2 commits into
mainfrom
memo-log-redesign-phase-c

Conversation

@rn404

@rn404 rn404 commented Aug 17, 2026

Copy link
Copy Markdown
Owner

Summary

  • Unfinished TODOs on the most recent past log day now carry forward automatically on the first write of a new day, with a fresh hash and a carriedFrom pointer back to the source item
  • The source day is frozen (read-only) as part of the same carry, and logfile.Update no longer self-rejects writing a frozen body (previously the only way to persist a freeze), moving the write-guard to callers — del gains its own explicit freeze check for its past-day writes
  • Resolves 指定した日のログの未完了タスクを今日のログに追加したい #8; task の reopen コマンドが欲しい #12 (reopen) can be re-evaluated on top of this now that carriedFrom exists

Test plan

  • go build ./..., go vet ./..., gofmt -l ., golangci-lint run ./...
  • go test ./... (new coverage: carry trigger/skip/gap-day/once-per-day in internal/command, CarryForward in internal/log, frozen-body persistence in internal/logfile, CLI end-to-end in cmd/sava)
  • Manual smoke test of the built binary against a seeded prior-day log file

rn404 added 2 commits August 17, 2026 15:09
Unfinished TODOs on the most recent past log day now carry forward
automatically on the first write of a new day: fresh hashes, a
carriedFrom pointer back to the source item, and the source day
frozen read-only. logfile.Update no longer self-rejects writing a
frozen body (the only way carry could ever persist the freeze it just
performed), so del gains its own explicit freeze check instead.
@rn404
rn404 merged commit 7750e2b into main Aug 17, 2026
2 checks passed
@rn404
rn404 deleted the memo-log-redesign-phase-c branch August 17, 2026 06:13
@github-actions github-actions Bot mentioned this pull request Aug 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

指定した日のログの未完了タスクを今日のログに追加したい

1 participant